package ru.pb.game.data.scripts;

import java.lang.reflect.Method;

/**
 * @author Felixx
 */
public class ScriptMethodInvoke
{
	private final ScriptInstance<?> _instance;
	private final Method _method;

	public ScriptMethodInvoke(ScriptInstance<?> instance, Method method)
	{
		_instance = instance;
		_method = method;
	}

	public Object invoke()
	{
		return _instance.invoke(_method);
	}
}